{%include file="index.header.tpl.php"%}
{%include file="index.left.tpl.php"%}
 <!--主要内容开始-->
  <div class="content-wrapper">
    <section class="content">
      <div class="row">
        <section class="col-lg-12 connectedSortable">
         <div class="box box-default box-solid">
             <form action="" method="POST">	
                <div class="box-header with-border">
                    <span class="fa fa-folder-open" style="float:left; font-size:18px; padding-top:3px; color:#3c8dbc;" ></span>
                    <p class="box-title">公开课安排表</p>
                </div>
                <div class="box-body">
                    <h4 class="text-center">公开课安排表</h4>
                     <table class="table table-bordered"  id="mytable">
                                <thead>
                                    <tr>
									    <td>周次</td>
                                        <td>教师</td>
                                        <td>日期</td>                      
										<td>节次</td>
										<td>班级</td>
                                        <td>教学内容</td>
										<td>科目</td>
										<td>备注</td>
                                    </tr>	
                                </thead>
                                <tbody>
                                    <tr>
									    <td style="width:10%">
										<input type="text" name="open_week_num" class="form-control" value="{%$open_data.open_week_num%}">
										</td>
                                        <td style="width:10%">
                                            <select class="form-control" style="padding:0;" name="staff_id">
											{%foreach from=$staff_list key=key item=value%}
                                                <option value="{%$value.staff_id%}"> {%$value.staff_name%}</option>
                                            {%/foreach%}
                                            </select>
                                        </td>
                                        <td style="width:10%">
										<input type="text" name="open_time" class="form-control time" value="{%$open_data.open_time%}">
										</td>          
										<td style="width:10%">
										<input type="text" name="open_num" class="form-control" value="{%$open_data.open_num%}">
										</td>
										<td style="width:10%">
                                        	 <select class="form-control" name="class_id">
											 {%foreach from=$class_list key=key item=value%}
                                                <option value="{%$value.class_id%}">{%$value.class_name%}</option>
                                             {%/foreach%}
                                            </select>
                                        </td>
                                        <td style="width:10%">
										<input type="text" name="open_content" class="form-control" value="{%$open_data.open_content%}">
										</td>
										<td style="width:10%">
                                        	 <select class="form-control" name="subject_id">
											 {%foreach from=$subject_list key=key item=value%}
                                                <option value="{%$value.subject_id%}">{%$value.subject_name%}</option>
                                             {%/foreach%}
                                            </select>
                                        </td>
										<td>
                                            <textarea class="form-control" rows="1" name="open_remark" >{%$open_data.open_remark%}</textarea>
                                        </td>
                                    </tr>	                                   	
                            </tbody>
                        </table>
				   </div><!--box-body -->
                   <div class="box-footer text-center">
				         <button type="submit" class="btn btn-primary"> 保 存</button>
				   </div>
               </form>
           </div><!--box box-default box-solid-->
        </section>   
           
        </div><!--row-->
    </section>
 </div>
  <!--主要内容结束-->
{%include file="index.footer.tpl.php"%}
 <script>
  $(function() {
    $( ".time" ).datepicker({
		 changeMonth: true,
	     changeYear: true,
		 dateFormat: "mm-dd",
    });
  });
  </script>